package com.gcxy.dto.weekly;

import com.gcxy.dto.evaluate.UpdateEvaluateDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName WeeklyReviewDTO
 * @Author qinlun
 * @Date 2024/7/30 11:10
 * @Describe
 **/
@Data
@Accessors(chain = true)
@ApiModel(value = "WeeklyReviewDTO", description = "周报评阅传入参数")
public class WeeklyReviewDTO {

    @NotNull(message = "周报id不能为空")
    @ApiModelProperty(value = "周报id", required = true)
    private Integer weeklyId;

    @NotBlank(message = "教师评价不能为空")
    @ApiModelProperty(value = "教师评价", required = true)
    private String appraiseInfo;

    @NotNull(message = "评价表不能为空")
    @ApiModelProperty(value = "评价表", required = true)
    @Valid
    private UpdateEvaluateDTO updateEvaluateDTO;
}
